/*

Copyright 2014年9月10日 tngou



Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License.

You may obtain a copy of the License at



    http://www.apache.org/licenses/LICENSE-2.0



Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

*/


package net.tngou.c4j;   

import java.io.IOException;
import java.util.Collection;
import java.util.Map;



import org.jsoup.Connection.KeyVal;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Entities;

import net.tngou.c4j.util.HttpUtil;
import net.tngou.crawler.util.HttpConfig;

/**   

 * Filename:    CollectionGenerator.java   

 * Copyright:   Copyright (c)2014 

 * Company:     rimi  

 * @version:    1.0   

 * @since:      JDK 1.7.0_21  

 * Create at:   2014年9月10日 下午2:30:23   

 * Description:  爬虫引擎

 *   

 * Modification History:   

 * Date             Author      Version     Description   

 * ----------------------------------------------------------------- 

 * 2014年9月10日           陈磊                  1.0         1.0 Version   

 */

public class CollectionGenerator {

	
	/**

	 * 取得页面信息

	* <p>Title: get<／p>

	* <p>Description: <／p>

	* @param url

	* @return

	 */
	public static Document get(String url) {
		return HttpUtil.get(url);
		
	}
	
	
	
	/**

	 * 

	 * @param url   请求的URL

	 * @param data  参数

	 * @return

	 */
	public static Document post(String url,Map<String, String> data) {
		return HttpUtil.post(url, data);
		
	}
	
	
}
  

